<?php

namespace App\Model;

class BillsScoreModel extends BaseModel
{
    protected $table = 'bills_score';
    protected $primaryKey = 'bills_score_id';

    protected $fillable = [
        'nums',
        'user_id',
        'title',
        'balance',
    ];

    public function userInfo(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(UsersModel::class,'user_id','user_id');
    }
}
